<template>
    <div class="antd-card">
        <div class="antd-card-header">
            <span>获取数据</span>
        </div>
        <div class="antd-card-body">
            <div class="antd-tabs">
                <div class="antd-tabs-nav">
                    <div class="antd-tabs-tab">下载状态</div>
                    <div class="antd-tabs-tab antd-tabs-tab-active">(未/正在)下载</div>
                    <div class="antd-tabs-tab">下载完成</div>
                </div>
            </div>
            <div class="get-data-controls">
                <span>提取时间段:</span>
                <input class="antd-input" type="date" value="2025-06-22">
                <span>到</span>
                <input class="antd-input" type="date" value="2025-06-22">
                <button class="antd-btn">获取时间段文件(不包含当天)</button>
                <button class="antd-btn">获取当天文件</button>
                <button class="antd-btn">获取所有文件(不包含当天)</button>
            </div>
            <div class="download-list">
                <!-- 下载列表将在这里 -->
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: 'GetData'
}
</script>

<style scoped>
/* antd-card antd-tabs antd-button antd-input */
.antd-card {
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}
.antd-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 500;
}
.antd-card-body {
    padding: 24px;
}

/* antd-tabs */
.antd-tabs {
    margin-bottom: 24px;
}
.antd-tabs-nav {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}
.antd-tabs-tab {
    padding: 12px 16px;
    cursor: pointer;
    margin-right: 32px;
    color: rgba(0, 0, 0, 0.85);
    position: relative;
}
.antd-tabs-tab-active {
    color: #1890ff;
    font-weight: 500;
}
.antd-tabs-tab-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1890ff;
}

/* antd-btn */
.antd-btn {
    line-height: 1.5715;
    border: 1px solid #d9d9d9;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
    cursor: pointer;
    transition: all 0.3s;
    height: 32px;
    padding: 4px 15px;
    font-size: 14px;
    border-radius: 2px;
    color: rgba(0, 0, 0, 0.85);
    background-color: #fff;
}
.antd-btn:hover {
    color: #40a9ff;
    border-color: #40a9ff;
}
.get-data-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.antd-input {
    box-sizing: border-box;
    margin: 0;
    padding: 4px 11px;
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
    line-height: 1.5715;
    list-style: none;
    position: relative;
    display: inline-block;
    width: 150px;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    transition: all 0.3s;
}
.antd-input:hover {
    border-color: #40a9ff;
    border-right-width: 1px !important;
}
</style> 